package com.mrdeer.merchant.service.impl;

import com.mrdeer.merchant.service.SmsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author: xie jianchu
 * @create_date: 2020/8/12 0012
 */
@Slf4j
@Service
public class SmsServiceImpl implements SmsService {

//    @Value("${sms.url}")
//    String url;
//
//    @Value("${sms.effectiveTime}")
//    String effectiveTime;

//    @Autowired
//    private RestTemplate restTemplate;

    @Override
    public String sendMsg(String phone) {
        return "1234567890abc";
    }

    @Override
    public void checkVerifyCode(String verifyKey, String verifyCode) {
        //校验正码服务的url

        //使用restTemplate请求验证码服务
    }
}
